import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
    base: "./",
    resolve: {
        alias: {
            "@": path.resolve(__dirname, "./src"), // 设置 @ 指向 src 目录
            "@assets": path.resolve(__dirname, "./src/assets"), // 设置 @assets 指向 src/assets 目录
        },
    },
    plugins: [uni()],
});
